﻿@using Coralcode.Utils.Basic
@using CoralNode.MvcClient.Helper
@using Coralcode.Utils.Basic.DateTimeUtil
@{
    ViewBag.Title = "访客分析-新老访客";
    ViewBag.PageModule = "visitor";
    ViewBag.CurrentPageUrl = "/m/statistic/visitorisnew?isnew=" + ViewBag.orderfield + "&";
}
@Html.IncludePage("CoralAdmin/statistic", "_Left")
<!--content-->
<div id="pbody">
    <div class="extra">
        @Html.IncludePage("CoralAdmin/statistic", "DateSelection")
        <div class="main-box mt_2 mb_2">
            <div class="tab-visit clearfix">
                <a href="/m/statistic/visitor?dateStart=@ViewBag.DateStart&dateEnd=@ViewBag.DateEnd&dateselect=@ViewBag.dateselecte">地区分布</a>
                <a href="/m/statistic/visitorisp?dateStart=@ViewBag.DateStart&dateEnd=@ViewBag.DateEnd&dateselect=@ViewBag.dateselecte">网络运营商</a>
                <a href="/m/statistic/visitordevice?dateStart=@ViewBag.DateStart&dateEnd=@ViewBag.DateEnd&dateselect=@ViewBag.dateselecte">终端详情</a>
                <a class="current" href="/m/statistic/visitorisnew?dateStart=@ViewBag.DateStart&dateEnd=@ViewBag.DateEnd&dateselect=@ViewBag.dateselecte">新老访客</a>
                <a href="/m/statistic/visitorloyalty?dateStart=@ViewBag.DateStart&dateEnd=@ViewBag.DateEnd&dateselect=@ViewBag.dateselecte">忠诚度</a>
                <a href="/m/statistic/visitoractiveness?dateStart=@ViewBag.DateStart&dateEnd=@ViewBag.DateEnd&dateselect=@ViewBag.dateselecte">活跃度</a>
            </div>
            <div class="clearfix">
                <div class="table_visit">
                    <table width="100%" style="margin-top:2px;">
                        <thead>
                            <tr class="t_bg">
                                <td width="10"></td>
                                <td></td>
                                <td align="right"><a class="ml_0-5 r" href=""><i class="ico ico_visit_time"></i></a><span class="color_green">新访客</span></td>
                                <td align="right"><a class="ml_0-5 r" href=""><i class="ico ico_visit_time"></i></a>老访客</td>                                   
                                <td></td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td></td>
                                <td>浏览次数</td>
                                <td align="right"><span class="color_green">@ViewBag.NewVisitorReport.PageView</span></td>
                                <td align="right">@ViewBag.OldVisitorReport.PageView</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>独立访客</td>
                                <td align="right"><span class="color_green">@ViewBag.NewVisitorReport.UniqueVisitor</span></td>
                                <td align="right">@ViewBag.OldVisitorReport.UniqueVisitor</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>访问次数</td>
                                <td align="right"><span class="color_green">@ViewBag.NewVisitorReport.SessionCount</span></td>
                                <td align="right">@ViewBag.OldVisitorReport.SessionCount</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>人均浏览页数</td>
                                <td align="right"><span class="color_green">@MathUtil.Round(ViewBag.NewVisitorReport.PageViewAverage)</span></td>
                                <td align="right">@MathUtil.Round(ViewBag.OldVisitorReport.PageViewAverage)</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>平均访问深度</td>
                                <td align="right"><span class="color_green">@MathUtil.Round(ViewBag.NewVisitorReport.PageDepthAverage)</span></td>
                                <td align="right">@MathUtil.Round(ViewBag.OldVisitorReport.PageDepthAverage)</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>平均访问时长</td>
                                <td align="right"><span class="color_green">@DateTimeUtil.ToFriendlyFull(ViewBag.NewVisitorReport.TimeOnSiteAverage)</span></td>
                                <td align="right">@DateTimeUtil.ToFriendlyFull(ViewBag.OldVisitorReport.TimeOnSiteAverage)</td>
                                <td></td>
                            </tr>
                            <tr class="last">
                                <td></td>
                                <td>跳出率</td>
                                <td align="right"><span class="color_green">@MathUtil.RoundPercent(ViewBag.NewVisitorReport.BounceRate)%</span></td>
                                <td align="right">@MathUtil.RoundPercent(ViewBag.OldVisitorReport.BounceRate)%</td>
                                <td></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div> 
        </div>
    </div>
</div>